package route

import (
	"diaomao/controller/backend"

	"github.com/gin-gonic/gin"
)

type AdminRouter struct {
	Router *gin.RouterGroup
}

func NewAdminRouter(router *gin.RouterGroup) *AdminRouter {
	return &AdminRouter{Router: router}
}

func (a *AdminRouter) AdminInit() {
	a.Router.GET("/", backend.Layout)
	a.Router.GET("/index", backend.Index)
	a.Router.GET("/crud", backend.Curd)
	// b.Router.GET("/captcha", agent.Captcha)
	// b.Router.POST("/login", agent.Login)

	// r := b.Router.Group("").Use(middleware.JWTAuth())
	// {
	// 	r.POST("/logout", agent.Logout)
	// }

}
